from django.db import models
from utils.models import CoreModel   


class Reasoncode(CoreModel):
    id = models.IntegerField(primary_key=True, help_text="原因代码主键", verbose_name="原因代码主键")
    name = models.CharField(null=True, blank=True, max_length=16, verbose_name='名称', help_text='名称')
    reason_code = models.CharField(null=True, blank=True, max_length=6, verbose_name='原因代码', help_text='原因代码')

    class Meta:
        db_table = 'reasoncode'
        verbose_name = '原因代码'
        verbose_name_plural = verbose_name
        ordering = ('-creation_on',)
    